package priv.menguer.business.controller;

import priv.menguer.business.service.BusinessService;
import priv.menguer.business.service.impl.EJBService;
import priv.menguer.business.service.impl.JMSService;

/**
 * @Title BusinessLookUp.java
 * @description TODO
 * @time 2018年10月26日 下午2:07:09
 * @author menguer@126.com
 * @version 1.0
 */
public class BusinessLookUp {
	public BusinessService getBusinessService(String serviceType) {
		if (serviceType.equalsIgnoreCase("EJB")) {
			return new EJBService();
		} else {
			return new JMSService();
		}
	}
}
